package com.demo.coupon;


import com.demo.AppletConstant;
import com.demo.util.Utils;

import java.util.HashMap;
import java.util.Map;


/**
 * 抽奖资格查询
 *
 */
public class QualSelect {
	public static void main(String[] args)  throws Exception{

		//调用接口地址
		String url = "https://open.95516.com/open/access/1.0/qual.select";
		
		//拼装参数Map
		Map<String, String> params = new HashMap<String, String>(0);
		params.put("appId", AppletConstant.APP_ID);
		params.put("qualNum", "");
		params.put("qualType", "");
		params.put("qualValue", "");
		params.put("backendToken", AppletConstant.backendToken);

		//针对敏感字段加密
		Utils.encryptedParamMap(AppletConstant.SYMMETRIC_KEY, params, "qualValue");
		//发送请求
		String resultStr = Utils.sendPostGson(url, params);
		
		System.out.println("-------抽奖资格查询:"+resultStr+"---------");
	}
	
}
